package com.springaop.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {
    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("srping-aopdemo.xml");
    /*    Landlord landlord = ioc.getBean(Landlord.class);
        landlord.service();*/
        TestOject testOject = ioc.getBean(TestOject.class);
        testOject.fn();
    }
}
